package com.wy2.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="message")
public class Message {
	@Id
	private Integer meid;
	private String sendid;
	private String sendname;
	private String acceptid;
	private String acceptname;
	private String mecontent;
	private Date metime;
	private String meisread;
	private String ext;
	public Integer getMeid() {
		return meid;
	}
	public void setMeid(Integer meid) {
		this.meid = meid;
	}
	public String getSendid() {
		return sendid;
	}
	public void setSendid(String sendid) {
		this.sendid = sendid;
	}
	public String getSendname() {
		return sendname;
	}
	public void setSendname(String sendname) {
		this.sendname = sendname;
	}
	public String getAcceptid() {
		return acceptid;
	}
	public void setAcceptid(String acceptid) {
		this.acceptid = acceptid;
	}
	public String getAcceptname() {
		return acceptname;
	}
	public void setAcceptname(String acceptname) {
		this.acceptname = acceptname;
	}
	public String getMecontent() {
		return mecontent;
	}
	public void setMecontent(String mecontent) {
		this.mecontent = mecontent;
	}
	public Date getMetime() {
		return metime;
	}
	public void setMetime(Date metime) {
		this.metime = metime;
	}
	public String getMeisread() {
		return meisread;
	}
	public void setMeisread(String meisread) {
		this.meisread = meisread;
	}
	public String getExt() {
		return ext;
	}
	public void setExt(String ext) {
		this.ext = ext;
	}
	@Override
	public String toString() {
		return "Message [meid=" + meid + ", sendid=" + sendid + ", sendname=" + sendname + ", acceptid=" + acceptid
				+ ", acceptname=" + acceptname + ", mecontent=" + mecontent + ", metime=" + metime + ", meisread="
				+ meisread + ", ext=" + ext + "]";
	}
	public Message(Integer meid, String sendid, String sendname, String acceptid, String acceptname, String mecontent,
			Date metime, String meisread, String ext) {
		super();
		this.meid = meid;
		this.sendid = sendid;
		this.sendname = sendname;
		this.acceptid = acceptid;
		this.acceptname = acceptname;
		this.mecontent = mecontent;
		this.metime = metime;
		this.meisread = meisread;
		this.ext = ext;
	}
	public Message() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
}
